grammar MyAntlr4;

first: 
 name ':' age '=' INT ',' action '=' method
;
name:NAME;
age:
AGE
;
action:
ACTION
;
method:
METHOD
;

MAO: ':';
DNE: '=';
DOU: ',';



AGE :'age';
ACTION : 'action';
//METHOD : [a-zA-Z]+;
METHOD : 'hahha';
NAME : ('a'..'z'|'A'..'Z')+ ;

INT:'0'..'9'+;

//METHOD : ('a'..'z'|'A'..'Z')+;
WS: [ \t\n\r]+ -> skip ; // 系统级规则 ，即忽略换行与空格